﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProjectLime
{
    class Program
    {
        static void Main(string[] args)
        {
            //INTRO
            Console.Title = "PROJECT LIME REV 0.1b";
            Console.WriteLine("*LOGIN/CHARACTERS NOT CODED*");
            Console.Write("Press any key to continue!");
            Console.ReadLine();
            Console.Clear();
            /*SECTION FOR LOGIN*/
             
            
             
            /*SECTION FOR CHARACTER SELECTION AND CREATION*/
            //variables, constants and formulas
            string menu = "", battleCommand = "", mobName = "";
            int str, sta, dex, inte, eStr, eSta, eDex, eInte, level, selectMob1;
            double hp1 = 1, hpE1 = 1, exp, exp1, exp2, exp3;
            str = 15;
            sta = 15;
            dex = 15;
            inte = 15;
            eStr = 5;
            eSta = 5;
            eDex = 5;
            eInte = 5;
            level = 1;
            exp = 0;
            exp1 = 0;
            exp2 = 0;
            exp3 = 0;
            selectMob1 = 0;
            // EXP1 = experiencia a gnhar; EXP2 = diferença entre necessario e a ganhar; EXP = experiencia actual; exp3 = necessario pa upar

            int dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
            int dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
            int hpFormula = 150 + (3 * sta);
            int hpFormulae = 150 + (6 * eSta);
 
            //BEGINNNING OF MAIN CODE
            do
            {
                //LEVELUP CHECK
                if (level >= 1 && level <= 10)
                {
                    exp3 = 1;
                }
                else
                    if (level >= 11 && level <= 20)
                    {
                        exp3 = 2;
                    }
                    else
                        if (level >= 21 && level <= 29)
                {
                    exp3 = 3;
                }
                //
                if (level < 30)
                {
                    if (exp >= exp3)
                    {
                        if (exp2 > 0)
                        {
                            exp = exp - exp2;
                            level = level + 1;
                            exp = 0;
                            exp = exp + exp2;
                        }
                        else
                        {
                            level = level + 1;
                            exp = 0;
                        }
                    }
                }



                Console.WriteLine("Main menu");
                Console.WriteLine("1. Leveling");
                Console.WriteLine("2. Inventory");
                Console.WriteLine("3. Shop");
                Console.WriteLine("4. Character stats");
                Console.WriteLine("5. Logout");
                menu = Console.ReadLine();

                if (menu == "1")
                {
                    Random selectMob = new Random();
                    if (level >= 0 && level <= 5)
                    {
                        selectMob1 = selectMob.Next(0, 5);
                    } else
                        if (level >= 6 && level <= 10)
                        {
                            selectMob1 = selectMob.Next(6, 10);
                        } else
                            if (level >= 11 && level <= 15)
                            {
                                selectMob1 = selectMob.Next(11, 15);
                            } else
                                if (level >= 16 && level <= 20)
                                {
                                    selectMob1 = selectMob.Next(16, 20);
                                } else
                                    if (level >= 21 && level <= 25)
                                    {
                                        selectMob1 = selectMob.Next(21, 25);
                                    } else
                                        if (level >= 26 && level <= 30)
                                        {
                                            selectMob1 = selectMob.Next(26, 30);
                                        }

                    if (selectMob1 == 1)
                    {
                        mobName = "Rabbit";
                        eStr = 1;
                        eSta = 1;
                        eDex = 1;
                        eInte = 1;
                        dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                        hpFormulae = 150 + (6 * eSta);
                        hpFormula = 150 + (3 * sta);
                        dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                        hp1 = hpFormula;
                        Random hpE = new Random();
                        hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                        Console.Clear();
                    } else
                        if (selectMob1 == 2)
                        {
                            mobName = "Dog";
                            eStr = 2;
                            eSta = 2;
                            eDex = 2;
                            eInte = 2;
                            dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                            hpFormulae = 150 + (6 * eSta);
                            hpFormula = 150 + (3 * sta);
                            dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                            hp1 = hpFormula;
                            Random hpE = new Random();
                            hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                            Console.Clear();
                        } else
                            if (selectMob1 == 3)
                            {
                                mobName = "Fox";
                                eStr = 3;
                                eSta = 3;
                                eDex = 3;
                                eInte = 3;
                                dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                hpFormulae = 150 + (6 * eSta);
                                hpFormula = 150 + (3 * sta);
                                dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                hp1 = hpFormula;
                                Random hpE = new Random();
                                hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                Console.Clear();
                            } else
                                if (selectMob1 == 4)
                                {
                                    mobName = "Eagle";
                                    eStr = 4;
                                    eSta = 4;
                                    eDex = 4;
                                    eInte = 4;
                                    dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                    hpFormulae = 150 + (6 * eSta);
                                    hpFormula = 150 + (3 * sta);
                                    dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                    hp1 = hpFormula;
                                    Random hpE = new Random();
                                    hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                    Console.Clear();
                                } else
                                    if (selectMob1 == 5)
                                    {
                                        mobName = "Lycon";
                                        eStr = 5;
                                        eSta = 5;
                                        eDex = 5;
                                        eInte = 5;
                                        dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                        hpFormulae = 150 + (6 * eSta);
                                        hpFormula = 150 + (3 * sta);
                                        dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                        hp1 = hpFormula;
                                        Random hpE = new Random();
                                        hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                        Console.Clear();
                                    }
                                    else
                                        if (selectMob1 == 6)
                                        {
                                            mobName = "Battling";
                                            eStr = 6;
                                            eSta = 6;
                                            eDex = 6;
                                            eInte = 6;
                                            dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                            hpFormulae = 150 + (6 * eSta);
                                            hpFormula = 150 + (3 * sta);
                                            dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                            hp1 = hpFormula;
                                            Random hpE = new Random();
                                            hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                            Console.Clear();
                                        }
                                        else
                                            if (selectMob1 == 7)
                                            {
                                                mobName = "Creep";
                                                eStr = 7;
                                                eSta = 7;
                                                eDex = 7;
                                                eInte = 7;
                                                dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                hpFormulae = 150 + (6 * eSta);
                                                hpFormula = 150 + (3 * sta);
                                                dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                hp1 = hpFormula;
                                                Random hpE = new Random();
                                                hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                Console.Clear();
                                            }
                                            else
                                                if (selectMob1 == 8)
                                                {
                                                    mobName = "Night-Stalker";
                                                    eStr = 8;
                                                    eSta = 8;
                                                    eDex = 8;
                                                    eInte = 8;
                                                    dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                    hpFormulae = 150 + (6 * eSta);
                                                    hpFormula = 150 + (3 * sta);
                                                    dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                    hp1 = hpFormula;
                                                    Random hpE = new Random();
                                                    hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                    Console.Clear();
                                                }
                                                else
                                                    if (selectMob1 == 9)
                                                    {
                                                        mobName = "Griffith";
                                                        eStr = 9;
                                                        eSta = 9;
                                                        eDex = 9;
                                                        eInte = 9;
                                                        dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                        hpFormulae = 150 + (6 * eSta);
                                                        hpFormula = 150 + (3 * sta);
                                                        dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                        hp1 = hpFormula;
                                                        Random hpE = new Random();
                                                        hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                        Console.Clear();
                                                    }
                                                    else
                                                        if (selectMob1 == 10)
                                                        {
                                                            mobName = "Harpy";
                                                            eStr = 10;
                                                            eSta = 10;
                                                            eDex = 10;
                                                            eInte = 10;
                                                            dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                            hpFormulae = 150 + (6 * eSta);
                                                            hpFormula = 150 + (3 * sta);
                                                            dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                            hp1 = hpFormula;
                                                            Random hpE = new Random();
                                                            hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                            Console.Clear();
                                                        }
                                                        else
                                                            if (selectMob1 == 11)
                                                            {
                                                                mobName = "Obnoxious blob";
                                                                eStr = 11;
                                                                eSta = 11;
                                                                eDex = 11;
                                                                eInte = 11;
                                                                dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                hpFormulae = 150 + (6 * eSta);
                                                                hpFormula = 150 + (3 * sta);
                                                                dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                hp1 = hpFormula;
                                                                Random hpE = new Random();
                                                                hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                Console.Clear();
                                                            }
                                                            else
                                                                if (selectMob1 == 12)
                                                                {
                                                                    mobName = "Venonous snake";
                                                                    eStr = 12;
                                                                    eSta = 12;
                                                                    eDex = 12;
                                                                    eInte = 12;
                                                                    dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                    hpFormulae = 150 + (6 * eSta);
                                                                    hpFormula = 150 + (3 * sta);
                                                                    dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                    hp1 = hpFormula;
                                                                    Random hpE = new Random();
                                                                    hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                    Console.Clear();
                                                                }
                                                                else
                                                                    if (selectMob1 == 13)
                                                                    {
                                                                        mobName = "Infantry";
                                                                        eStr = 13;
                                                                        eSta = 13;
                                                                        eDex = 13;
                                                                        eInte = 13;
                                                                        dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                        hpFormulae = 150 + (6 * eSta);
                                                                        hpFormula = 150 + (3 * sta);
                                                                        dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                        hp1 = hpFormula;
                                                                        Random hpE = new Random();
                                                                        hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                        Console.Clear();
                                                                    }
                                                                    else
                                                                        if (selectMob1 == 14)
                                                                        {
                                                                            mobName = "Archer";
                                                                            eStr = 14;
                                                                            eSta = 14;
                                                                            eDex = 14;
                                                                            eInte = 14;
                                                                            dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                            hpFormulae = 150 + (6 * eSta);
                                                                            hpFormula = 150 + (3 * sta);
                                                                            dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                            hp1 = hpFormula;
                                                                            Random hpE = new Random();
                                                                            hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                            Console.Clear();
                                                                        }
                                                                        else
                                                                            if (selectMob1 == 15)
                                                                            {
                                                                                mobName = "Leech";
                                                                                eStr = 15;
                                                                                eSta = 15;
                                                                                eDex = 15;
                                                                                eInte = 15;
                                                                                dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                                hpFormulae = 150 + (6 * eSta);
                                                                                hpFormula = 150 + (3 * sta);
                                                                                dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                                hp1 = hpFormula;
                                                                                Random hpE = new Random();
                                                                                hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                                Console.Clear();
                                                                            }
                                                                            else
                                                                                if (selectMob1 == 16)
                                                                                {
                                                                                    mobName = "Royal King";
                                                                                    eStr = 16;
                                                                                    eSta = 16;
                                                                                    eDex = 16;
                                                                                    eInte = 16;
                                                                                    dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                                    hpFormulae = 150 + (6 * eSta);
                                                                                    hpFormula = 150 + (3 * sta);
                                                                                    dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                                    hp1 = hpFormula;
                                                                                    Random hpE = new Random();
                                                                                    hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                                    Console.Clear();
                                                                                }
                                                                                else
                                                                                    if (selectMob1 == 17)
                                                                                    {
                                                                                        mobName = "Prison cell guard";
                                                                                        eStr = 17;
                                                                                        eSta = 17;
                                                                                        eDex = 17;
                                                                                        eInte = 17;
                                                                                        dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                                        hpFormulae = 150 + (6 * eSta);
                                                                                        hpFormula = 150 + (3 * sta);
                                                                                        dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                                        hp1 = hpFormula;
                                                                                        Random hpE = new Random();
                                                                                        hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                                        Console.Clear();
                                                                                    }
                                                                                    else
                                                                                        if (selectMob1 == 18)
                                                                                        {
                                                                                            mobName = "Darkness Archer";
                                                                                            eStr = 18;
                                                                                            eSta = 18;
                                                                                            eDex = 18;
                                                                                            eInte = 18;
                                                                                            dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                                            hpFormulae = 150 + (6 * eSta);
                                                                                            hpFormula = 150 + (3 * sta);
                                                                                            dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                                            hp1 = hpFormula;
                                                                                            Random hpE = new Random();
                                                                                            hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                                            Console.Clear();
                                                                                        }
                                                                                        else
                                                                                            if (selectMob1 == 19)
                                                                                            {
                                                                                                mobName = "Leviathan";
                                                                                                eStr = 19;
                                                                                                eSta = 19;
                                                                                                eDex = 19;
                                                                                                eInte = 19;
                                                                                                dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                                                hpFormulae = 150 + (6 * eSta);
                                                                                                hpFormula = 150 + (3 * sta);
                                                                                                dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                                                hp1 = hpFormula;
                                                                                                Random hpE = new Random();
                                                                                                hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                                                Console.Clear();
                                                                                            }
                                                                                            else
                                                                                                if (selectMob1 == 20)
                                                                                                {
                                                                                                    mobName = "Bahemoth";
                                                                                                    eStr = 20;
                                                                                                    eSta = 20;
                                                                                                    eDex = 20;
                                                                                                    eInte = 20;
                                                                                                    dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                                                    hpFormulae = 150 + (6 * eSta);
                                                                                                    hpFormula = 150 + (3 * sta);
                                                                                                    dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                                                    hp1 = hpFormula;
                                                                                                    Random hpE = new Random();
                                                                                                    hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                                                    Console.Clear();
                                                                                                }
                                                                                                else
                                                                                                    if (selectMob1 == 21)
                                                                                                    {
                                                                                                        mobName = "Ghost King";
                                                                                                        eStr = 21;
                                                                                                        eSta = 21;
                                                                                                        eDex = 21;
                                                                                                        eInte = 21;
                                                                                                        dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                                                        hpFormulae = 150 + (6 * eSta);
                                                                                                        hpFormula = 150 + (3 * sta);
                                                                                                        dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                                                        hp1 = hpFormula;
                                                                                                        Random hpE = new Random();
                                                                                                        hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                                                        Console.Clear();
                                                                                                    }
                                                                                                    else
                                                                                                        if (selectMob1 == 22)
                                                                                                        {
                                                                                                            mobName = "Oryx";
                                                                                                            eStr = 22;
                                                                                                            eSta = 22;
                                                                                                            eDex = 22;
                                                                                                            eInte = 22;
                                                                                                            dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                                                            hpFormulae = 150 + (6 * eSta);
                                                                                                            hpFormula = 150 + (3 * sta);
                                                                                                            dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                                                            hp1 = hpFormula;
                                                                                                            Random hpE = new Random();
                                                                                                            hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                                                            Console.Clear();
                                                                                                        }
                                                                                                        else
                                                                                                            if (selectMob1 == 23)
                                                                                                            {
                                                                                                                mobName = "Nine-tailed fox";
                                                                                                                eStr = 23;
                                                                                                                eSta = 23;
                                                                                                                eDex = 23;
                                                                                                                eInte = 23;
                                                                                                                dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                                                                hpFormulae = 150 + (6 * eSta);
                                                                                                                hpFormula = 150 + (3 * sta);
                                                                                                                dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                                                                hp1 = hpFormula;
                                                                                                                Random hpE = new Random();
                                                                                                                hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                                                                Console.Clear();
                                                                                                            }
                                                                                                            else
                                                                                                                if (selectMob1 == 24)
                                                                                                                {
                                                                                                                    mobName = "Ice Titan";
                                                                                                                    eStr = 24;
                                                                                                                    eSta = 24;
                                                                                                                    eDex = 24;
                                                                                                                    eInte = 24;
                                                                                                                    dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                                                                    hpFormulae = 150 + (6 * eSta);
                                                                                                                    hpFormula = 150 + (3 * sta);
                                                                                                                    dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                                                                    hp1 = hpFormula;
                                                                                                                    Random hpE = new Random();
                                                                                                                    hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                                                                    Console.Clear();
                                                                                                                }
                                                                                                                else
                                                                                                                    if (selectMob1 == 25)
                                                                                                                    {
                                                                                                                        mobName = "Fire Titan";
                                                                                                                        eStr = 25;
                                                                                                                        eSta = 25;
                                                                                                                        eDex = 25;
                                                                                                                        eInte = 25;
                                                                                                                        dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                                                                        hpFormulae = 150 + (6 * eSta);
                                                                                                                        hpFormula = 150 + (3 * sta);
                                                                                                                        dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                                                                        hp1 = hpFormula;
                                                                                                                        Random hpE = new Random();
                                                                                                                        hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                                                                        Console.Clear();
                                                                                                                    }
                                                                                                                    else
                                                                                                                        if (selectMob1 == 26)
                                                                                                                        {
                                                                                                                            mobName = "Enraged God";
                                                                                                                            eStr = 26;
                                                                                                                            eSta = 26;
                                                                                                                            eDex = 26;
                                                                                                                            eInte = 26;
                                                                                                                            dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                                                                            hpFormulae = 150 + (6 * eSta);
                                                                                                                            hpFormula = 150 + (3 * sta);
                                                                                                                            dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                                                                            hp1 = hpFormula;
                                                                                                                            Random hpE = new Random();
                                                                                                                            hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                                                                            Console.Clear();
                                                                                                                        }
                                                                                                                        else
                                                                                                                            if (selectMob1 == 27)
                                                                                                                            {
                                                                                                                                mobName = "God of War";
                                                                                                                                eStr = 27;
                                                                                                                                eSta = 27;
                                                                                                                                eDex = 27;
                                                                                                                                eInte = 27;
                                                                                                                                dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                                                                                hpFormulae = 150 + (6 * eSta);
                                                                                                                                hpFormula = 150 + (3 * sta);
                                                                                                                                dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                                                                                hp1 = hpFormula;
                                                                                                                                Random hpE = new Random();
                                                                                                                                hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                                                                                Console.Clear();
                                                                                                                            }
                                                                                                                            else
                                                                                                                                if (selectMob1 == 28)
                                                                                                                                {
                                                                                                                                    mobName = "Warlock";
                                                                                                                                    eStr = 28;
                                                                                                                                    eSta = 28;
                                                                                                                                    eDex = 28;
                                                                                                                                    eInte = 28;
                                                                                                                                    dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                                                                                    hpFormulae = 150 + (6 * eSta);
                                                                                                                                    hpFormula = 150 + (3 * sta);
                                                                                                                                    dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                                                                                    hp1 = hpFormula;
                                                                                                                                    Random hpE = new Random();
                                                                                                                                    hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                                                                                    Console.Clear();
                                                                                                                                }
                                                                                                                                else
                                                                                                                                    if (selectMob1 == 29)
                                                                                                                                    {
                                                                                                                                        mobName = "Death";
                                                                                                                                        eStr = 29;
                                                                                                                                        eSta = 29;
                                                                                                                                        eDex = 29;
                                                                                                                                        eInte = 29;
                                                                                                                                        dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                                                                                        hpFormulae = 150 + (6 * eSta);
                                                                                                                                        hpFormula = 150 + (3 * sta);
                                                                                                                                        dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                                                                                        hp1 = hpFormula;
                                                                                                                                        Random hpE = new Random();
                                                                                                                                        hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                                                                                        Console.Clear();
                                                                                                                                    }
                                                                                                                                    else
                                                                                                                                        if (selectMob1 == 30)
                                                                                                                                        {
                                                                                                                                            mobName = "Lich King";
                                                                                                                                            eStr = 30;
                                                                                                                                            eSta = 30;
                                                                                                                                            eDex = 30;
                                                                                                                                            eInte = 30;
                                                                                                                                            dmgFormulae = (2 * eStr) + (1 * eInte) + (1 * eDex);
                                                                                                                                            hpFormulae = 150 + (6 * eSta);
                                                                                                                                            hpFormula = 150 + (3 * sta);
                                                                                                                                            dmgFormula = (3 * str) + (1 * inte) + (2 * dex);
                                                                                                                                            hp1 = hpFormula;
                                                                                                                                            Random hpE = new Random();
                                                                                                                                            hpE1 = hpE.Next((hpFormulae - 50), hpFormulae);
                                                                                                                                            Console.Clear();
                                                                                                                                        }


                    // BATTLE SYSTEM
                    do
                    {
                        if (hpE1 <= 0)
                        {
                            Console.WriteLine("You have defeated " + mobName + "!");
                            Console.WriteLine("");
                            if (selectMob1 >= 0 && selectMob1 <= 10)
                                {
                                exp1 = 1;
                                exp = exp + exp1;
                                exp2 = exp - exp3;
                                }
                            else
                                if (selectMob1 >= 11 && selectMob1 <= 20)
                                {
                                    exp1 = 2;
                                    exp = exp + exp1;
                                    exp2 = exp - exp3;
                                }
                                else
                                    if (selectMob1 >= 21 && selectMob1 <= 30)
                                    {
                                        exp1 = 2;
                                        exp = exp + exp1;
                                        exp2 = exp - exp;
                                    }
                            break;
                        } else
                            if (hp1 <= 0)
                            {
                                Console.WriteLine("You have been defeated by " + mobName + "!");
                                Console.WriteLine("");
                                break;
                            }
                        Console.WriteLine("You are fighting: " + mobName);
                        Console.WriteLine("Enemy HP: " + hpE1);
                        Console.WriteLine("Your HP: " + hp1);
                        Console.WriteLine("What do you want to do?");
                        Console.WriteLine();
                        Console.WriteLine("1. Attack");
                        Console.WriteLine("2. Main Menu");
                        battleCommand = Console.ReadLine();
                        if (battleCommand == "1")
                        {
                            Random dmg = new Random();
                            int dmgDone = dmg.Next(dmgFormula);
                            hpE1 = hpE1 - dmgDone;
                            Console.WriteLine("Penguin has lost " + dmgDone + " health points!");
                            dmgDone = dmg.Next(dmgFormulae);
                            hp1 = hp1 - dmgDone;
                            Console.WriteLine("You have lost " + dmgDone + " health points!");

                        }
                        Console.WriteLine();
                    } while (battleCommand != "2");
                }
                else
                    if (menu == "2")
                    {
                        //INVENTORY SYSTEM
                        Console.Clear();
                    }
                    else
                        if (menu == "3")
                        {
                            //SHOP SYSTEM
                            Console.Clear();
                        }
                        else
                            if (menu == "4")
                            {
                                do
                                {
                                    //CHARACTER SYSTEM
                                    Console.Clear();
                                    Console.WriteLine("Level: " + level);
                                    Console.WriteLine("EXP: " + exp);
                                    Console.WriteLine("EXP required to level up: " + exp3);
                                    Console.WriteLine("\n1.Back");
                                    menu = Console.ReadLine();
                                    if (menu == "1")
                                    {
                                        break;
                                    }
                                } while (menu != "1");

                            }
                            else
                                if (menu == "5")
                                {
                                    Console.Clear();
                                    Console.ReadLine();
                                    /*CODE FOR LOGOUT*/
                                    Environment.Exit(0);
                                }
            } while (menu != "5");
        }
    }
}